home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Oct 89 / Z0183-TApplication.Close -Oct89 < prev    next >
Encoding:
Text File  |  1989-10-26  |  916 b   |  26 lines  |  [TEXT/GEOL]

  1. Item forwarded  by  BOWMAN       to TRAMMEL1
  2.  
  3. Item    8956971                         26-Oct-89        06:46
  4.  
  5. From:   MID                             France, M.I.D.
  6.  
  7. To:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    TApplication.Close problem
  10.  
  11. There is a problem with the TApplication.Close method if the application has
  12. created any "NOT ClosableByUser" window while running.
  13.  
  14. TApplication.Close method repeatedly calls TApplication.CloseWMgrWindow while a
  15. FrontWindow exists. If the FrontWindow is a TWindow which can't be closed with
  16. the CloseByUser method (a "noGoAwayBox" window for example), the
  17. TApplication.Close method will enter in an infinite loop.
  18.  
  19. To avoid this problem, application must keep a reference to all "NOT
  20. ClosableByUser" windows it has created and then, in its Close OVERRIDE, it will
  21. dispose these windows before calling the INHERITED Close method.
  22.  
  23. Etienne Vautherin
  24.  
  25.  
  26.